import com.ittaoli.commen.MD5Encode;
import com.ittaoli.dao.UserMapper;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Admin {
        @Test
        public void login(){
            ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
            UserMapper bean = context.getBean(UserMapper.class);
            System.out.println(bean.selectByName("tom"));

        }

        @Test
        public void MD5(){
            String encode= MD5Encode.encode("123");
            System.out.println(encode);
        }
    }


